﻿/**************************************************************
*作者：Leon
*创建时间：2022/4/8 22:16:16
**************************************************************/
using System.Windows;
using System.Windows.Data;

namespace Lad.DrawProject.Controls.Converters;

public class BoolToVisibilityConverter : IValueConverter
{
    public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
    {
        return ((bool)value) ? Visibility.Visible : Visibility.Collapsed;
    }

    public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
    {
        throw new NotImplementedException();
    }
}
